package jtk.project4.fleet.field;

import java.awt.FlowLayout;
import java.text.SimpleDateFormat;

import nl.coderight.jazz.form.FormField;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.ComboField;
import nl.coderight.jazz.form.field.NumberField;
import nl.coderight.jazz.form.field.SelectField;
import nl.coderight.jazz.form.field.TableField;
import nl.coderight.jazz.form.field.TextField;
import nl.coderight.jazz.form.field.table.TableFieldColumn;
import nl.coderight.jazz.form.control.CalendarControl;


public class EquipmentLastPmSetUpServiceField extends GroupControl{
	private TableField serviceTableField1;
	private TableField serviceTableField2;
	private NumberField sumField;
	
	public EquipmentLastPmSetUpServiceField(String bindID){
		//setTitle("header.generalinformation");
		setBindID(bindID);
		createFields();
		createLayout();
	}
	
	private void createFields() {
			serviceTableField1 = new TableField("","");
			//serviceTableField1.setColumnHeader("saya");
			serviceTableField1.addColumn("label.serviceDescriptions","");
			serviceTableField1.addColumn("label.lastPerformed","");

			serviceTableField2 = new TableField("","");
			serviceTableField2.addColumn("label.PMserviceName","");
			serviceTableField2.addColumn("label.type","");
			serviceTableField2.addColumn("label.date","");
			serviceTableField2.addColumn("label.mileage","");
			
	}
	
	private void createLayout() {
		// TODO Auto-generated method stub
		setLayout(new FormLayout())
		//.addField(serviceTableField1)
		//.addRow()
		.addField(serviceTableField2)
		;	
	}

	

}
